#include <iostream>

using namespace std;

class Dog
{
    static int dogs;

public:

    Dog() { dogs++; }

    static int getDogs() { return dogs; }

};

int Dog::dogs = 0;

int main()
{
    Dog d1, d2, d3;
    cout << "I have " << Dog::getDogs() << " dogs." << endl;
    return 0;
}